package com.ysd.lis.entity.callNum;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

/***
 *@title 采样窗口表
 *@author WH
 *@version 1.0.0
 *@create 2025/5/27 9:55
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("CALL_WINDOW")
@Entity
@Table(name = "CALL_WINDOW")
public class CallWindow extends BaseEntityJpa {

    /**
     * 窗口code
     */
    @TableField("WIN_CODE")
    @Column(name = "WIN_CODE")
    private String winCode;

    /**
     * 窗口名称
     */
    @TableField("WIN_NAME")
    @Column(name = "WIN_NAME")
    private String winName;

    /**
     * 标本类型编码
     */
    @TableField("SAMPLE_TYPE_CODE")
    @Column(name = "SAMPLE_TYPE_CODE")
    private String sampleTypeCode;

    /**
     * 是否启用：1是 0否
     */
    @TableField("IS_ENABLE")
    @Column(name = "IS_ENABLE")
    private Integer isEnable;

    /**
     * 排序码
     */
    @TableField("SEQ")
    @Column(name = "SEQ")
    private BigDecimal seq;

    /**
     * 数量
     */
    @TableField(exist = false)
    @Transient
    private List<CallBusiness> callBusinesses;
    /**
     * 数量
     */
    @TableField(exist = false)
    @Transient
    private int businessesCount;

}
